import Vue from "vue";
import App from "./App";
import router from "./router";
// import 'font-awesome/css/font-awesome.min.css';
import store from "./store";
//定义全局变量
import vClickOutside from 'vue-click-outside'

// Import Plugin
import readableNumber from "./libs/vue-readable-number.js";
import Grid from "@/components/other/grid.vue";
// Import Component


// Debug mode
Vue.config.debug = true;
Vue.config.devtools = true;

// Global Function
global.cleanUp = data => {
    return JSON.parse(JSON.stringify(data));
};

// Global Filter
Vue.filter("readable-number", readableNumber);

// Global Directive
Vue.directive("click-outside", vClickOutside);

// Global Component
Vue.component("grid", Grid);

Vue.use(vClickOutside)

Vue.config.productionTip = false;
/* eslint-disable no-new */
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount("#app");
